import request from '@/utils/request';

export function dirTree(data) {
  return request.post('/dir/dirTree', data);
}
export function currentDirList(data) {
  return request.post('/dir/getCurrentDir', data);
}
export function mkdir(data) {
  return request.post('/dir/mkdir', data);
}
export function getRecycleBin(data) {
  return request.post('/dir/getRecycleBin', data);
}
export function recovery(data) {
  return request.post('/dir/recovery', data);
}
export function removeCompletely(data) {
  return request.post('/dir/removeCompletely', data);
}
export function cleanRecyclingBin(data) {
  return request.post('/dir/cleanRecyclingBin', data);
}
export function deleteDir(data) {
  return request.postJSON('/dir/deleteDir', data);
}
export function rename(data) {
  return request.postJSON('/dir/rename', data);
}
export function copy(data) {
  return request.postJSON('/dir/copy', data);
}
export function move(data) {
  return request.postJSON('/dir/move', data);
}
